package com.df.controller;

import com.df.config.ServerConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: codes
 * @description:
 * @author: df
 * @create: 2023-07-09 13:45:44
 **/
@RestController
public class HelloController {

    @Autowired
    private ServerConfig serverConfig;

    @GetMapping("/hello")
    public String hello(){

        return "端口号:"+serverConfig.getServerPort();
    }
}
